package com.data.modules.online.cgform.model;

import java.util.List;
import com.data.common.system.vo.SysPermissionDataRuleModel;
import com.data.modules.online.cgform.entity.OnlCgformField;

public class OnlTable {

    private String f187a;

    private String f188b;

    private List<OnlCgformField> f189c;

    private List<OnlCgformField> f190d;

    private List<SysPermissionDataRuleModel> f191e;

    private String f192f;

    private String f193g;

    private String f194h;

    private boolean f195i;


    public boolean mo849a(Object obj) {
        return obj instanceof OnlTable;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof OnlTable)) {
            return false;
        }
        OnlTable cVar = (OnlTable) o;
        if (!cVar.mo849a(this)) {
            return false;
        }
        if (mo848a() != cVar.mo848a()) {
            return false;
        }
        String tableName = getTableName();
        String tableName2 = cVar.getTableName();
        if (tableName != null ? !tableName.equals(tableName2) : tableName2 != null) {
            return false;
        }
        String tableId = getTableId();
        String tableId2 = cVar.getTableId();
        if (tableId != null ? !tableId.equals(tableId2) : tableId2 != null) {
            return false;
        }
        List<OnlCgformField> allFieldList = getAllFieldList();
        List<OnlCgformField> allFieldList2 = cVar.getAllFieldList();
        if (allFieldList != null ? !allFieldList.equals(allFieldList2) : allFieldList2 != null) {
            return false;
        }
        List<OnlCgformField> selectFieldList = getSelectFieldList();
        List<OnlCgformField> selectFieldList2 = cVar.getSelectFieldList();
        if (selectFieldList != null ? !selectFieldList.equals(selectFieldList2) : selectFieldList2 != null) {
            return false;
        }
        List<SysPermissionDataRuleModel> authList = getAuthList();
        List<SysPermissionDataRuleModel> authList2 = cVar.getAuthList();
        if (authList != null ? !authList.equals(authList2) : authList2 != null) {
            return false;
        }
        String mainField = getMainField();
        String mainField2 = cVar.getMainField();
        if (mainField != null ? !mainField.equals(mainField2) : mainField2 != null) {
            return false;
        }
        String joinField = getJoinField();
        String joinField2 = cVar.getJoinField();
        if (joinField != null ? !joinField.equals(joinField2) : joinField2 != null) {
            return false;
        }
        String alias = getAlias();
        String alias2 = cVar.getAlias();
        if (alias == null) {
            if (alias2 == null) {
                return true;
            }
        } else if (alias.equals(alias2)) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        int i = 43;
        int i2 = mo848a() ? 79 : 97;
        String tableName = getTableName();
        int i3 = (i2 + 59) * 59;
        int hashCode = tableName == null ? 43 : tableName.hashCode();
        String tableId = getTableId();
        int i4 = (hashCode + i3) * 59;
        int hashCode2 = tableId == null ? 43 : tableId.hashCode();
        List<OnlCgformField> allFieldList = getAllFieldList();
        int i5 = (hashCode2 + i4) * 59;
        int hashCode3 = allFieldList == null ? 43 : allFieldList.hashCode();
        List<OnlCgformField> selectFieldList = getSelectFieldList();
        int i6 = (hashCode3 + i5) * 59;
        int hashCode4 = selectFieldList == null ? 43 : selectFieldList.hashCode();
        List<SysPermissionDataRuleModel> authList = getAuthList();
        int i7 = (hashCode4 + i6) * 59;
        int hashCode5 = authList == null ? 43 : authList.hashCode();
        String mainField = getMainField();
        int i8 = (hashCode5 + i7) * 59;
        int hashCode6 = mainField == null ? 43 : mainField.hashCode();
        String joinField = getJoinField();
        int i9 = (hashCode6 + i8) * 59;
        int hashCode7 = joinField == null ? 43 : joinField.hashCode();
        String alias = getAlias();
        int i10 = (hashCode7 + i9) * 59;
        if (alias != null) {
            i = alias.hashCode();
        }
        return i10 + i;
    }

    public void setAlias(String alias) {
        this.f194h = alias;
    }

    public void setAllFieldList(List<OnlCgformField> allFieldList) {
        this.f189c = allFieldList;
    }

    public void setAuthList(List<SysPermissionDataRuleModel> authList) {
        this.f191e = authList;
    }

    public void setJoinField(String joinField) {
        this.f193g = joinField;
    }

    public void setMain(boolean isMain) {
        this.f195i = isMain;
    }

    public void setMainField(String mainField) {
        this.f192f = mainField;
    }

    public void setSelectFieldList(List<OnlCgformField> selectFieldList) {
        this.f190d = selectFieldList;
    }

    public void setTableId(String tableId) {
        this.f188b = tableId;
    }

    public void setTableName(String tableName) {
        this.f187a = tableName;
    }

    public String toString() {
        return "OnlTable(tableName=" + getTableName() + ", tableId=" + getTableId() + ", allFieldList=" + getAllFieldList() + ", selectFieldList=" + getSelectFieldList() + ", authList=" + getAuthList() + ", mainField=" + getMainField() + ", joinField=" + getJoinField() + ", alias=" + getAlias() + ", isMain=" + mo848a() + ")";
    }

    public String getTableName() {
        return this.f187a;
    }

    public String getTableId() {
        return this.f188b;
    }

    public List<OnlCgformField> getAllFieldList() {
        return this.f189c;
    }

    public List<OnlCgformField> getSelectFieldList() {
        return this.f190d;
    }

    public List<SysPermissionDataRuleModel> getAuthList() {
        return this.f191e;
    }

    public String getMainField() {
        return this.f192f;
    }

    public String getJoinField() {
        return this.f193g;
    }

    public String getAlias() {
        return this.f194h;
    }

    public boolean mo848a() {
        return this.f195i;
    }

    public void setAliasByIntValue(int index) {
        this.f194h = String.valueOf((char) index);
    }

    public String getTableAlias() {
        return this.f194h + ".";
    }

    public OnlTable() {
    }

    public OnlTable(String str, String str2, boolean z) {
        this.f187a = str;
        this.f188b = str2;
        this.f195i = z;
    }
}
